package core.proto;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;

import org.jdesktop.swingx.JXMapViewer;
import org.jdesktop.swingx.mapviewer.Waypoint;
import org.jdesktop.swingx.mapviewer.WaypointRenderer;

import app.constants.CollabVizConstants;

/**
 * Code taken from: 
 * {@link http://www.jarvana.com/jarvana/view/org/swinglabs/swingx-ws/1.0/swingx-ws-1.0-sources.jar!/org/jdesktop/swingx/mapviewer/DefaultWaypointRenderer.java?format=ok}
 * and the paintWaypoint routine modified. 
 */
public class MapWaypointRenderer {
    
    public MapWaypointRenderer() {
    }
    
    public static void paintWaypointAt(Graphics g, int x, int y, ImageIcon img){
    	g.drawImage(img.getImage(), x-img.getIconWidth() /2, y-img.getIconHeight(), null);
   	}
}